<?php
	
	// Add the javascript if the html view has been loaded
	
	$view_html = &$this->puzzle->vars->default_html;
	
	if ($view_html != null)
	{
		if (!$view_html->scriptaculous_loaded)
		{
			$view_html->view_head->params->js[] = $this->puzzle->config['dir_ext'] . $DS . $this->extension . $DS . "js" . $DS . "scriptaculous" . $DS . "prototype.js";
			$view_html->view_head->params->js[] = $this->puzzle->config['dir_ext'] . $DS . $this->extension . $DS . "js" . $DS . "scriptaculous" . $DS . "scriptaculous.js";
			$view_html->scriptaculous_loaded = true;
		}
	}
	
	
